package com.framework.file.dto;

import com.framework.file.model.SysFile;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysFileDto extends SysFile implements Serializable {
    private static final long serialVersionUID = 6609480890894569724L;

    @ApiModelProperty(value = "文件流")
    private byte[] data;

    private MultipartFile multipartFile;

    public static SysFileDto builder() {
        return new SysFileDto();
    }
}
